home *** CD-ROM | disk | FTP | other *** search
/ Aminet 5 / Aminet 5 - March 1995.iso / Aminet / misc / amag / AM9410_6.lha / Battle Field Creator / Install_Disk < prev    next >
Text File  |  1994-09-19  |  5KB  |  195 lines

  1. (makeassign "BFC" (pathonly @icon))
  2.  
  3. (message
  4.         "Installation des Battle Field Creators.\n"
  5.         "---------------------------------------\n"
  6.         "Für die Installation wird eine formatierte Diskette mit dem"
  7.         " Namen \"BFC_USER:\" benötigt.\n"
  8.         " Liegt eine solche Diskette schon bereit können Sie gleich loslegen."
  9. )
  10.  
  11. (set drive
  12.         (askchoice
  13.                 (prompt "Wieviele Diskettenlaufwerke besitzt ihr Rechner ?")
  14.                 (help "Geben Sie einfach an,ob Sie ein Diskettenlaufwerk oder mehrere besitzen.")
  15.                 (choices "EIN Laufwerk" "mehr als ein Laufwerk")
  16.                 (default 0)
  17.         )
  18. )
  19.  
  20. (set dir "BFC_USER:")
  21.  
  22. (set bi2
  23.         (askoptions
  24.                 (prompt "Welche Diskette besitzen Sie ?")
  25.                 (help @askoptions-help)
  26.                 (choices "Battle Isle (TM)" "Data Disk 1" "Data Disk 2")
  27.                 (default 1)
  28.         )
  29. )
  30.  
  31. (if (= (BITAND bi2 5) 0)
  32.         (abort "Ohne die Battle Isle (TM) Disketten, können Sie den Battle Field Creator nicht nutzen!")
  33. )
  34.  
  35.  
  36. (if (= drive 0)
  37.         ((makedir "RAM:BFC")
  38.         (set dir2 "RAM:BFC"))
  39.         (set dir2 dir)
  40. )
  41.  
  42. (makedir (tackon dir2 "MAPS"))
  43.  
  44. (set Libs bi2)
  45.  
  46. (if (= (BITAND LIBS 1) 1)
  47.         ((makedir (tackon dir2 "LIB0"))
  48.         (makedir (tackon dir2 "Computer"))
  49.         (set z1 ("Assign Computer: \"%s\"\nAssign LIB0: \"%s\"\n" (tackon dir "Computer") (tackon dir "LIB0")))
  50.         )
  51. )
  52.  
  53. (if (= (BITAND Libs 2) 2)
  54.         ((makedir (tackon dir2 "LIB1"))
  55.         (set z2("Assign LIB1: \"%s\"\n" (tackon dir "LIB1")))
  56.         )
  57. )
  58.  
  59. (if (= (BITAND Libs 4) 4)
  60.         ((makedir (tackon dir2 "LIB2"))
  61.         (set z3 ("Assign LIB2: \"%s\"\n" (tackon dir "LIB2")))
  62.         )
  63. )
  64.  
  65. (makedir (tackon dir2 "s"))
  66.  
  67. (textfile
  68.         (dest (tackon dir2 "Battle Field Creator"))
  69.         (append "Assign BFC: BFC_USER:\n")
  70.         (append z1)
  71.         (append z2)
  72.         (append z3)
  73.         (append ("\"%s\"\n" (tackon dir "BFC")))
  74. )
  75.  
  76. (textfile
  77.         (dest (tackon dir2 "s/StartUp-Sequence"))
  78.         (append "Assign ENV: RAM:\n")
  79.         (append "Assign BFC: BFC_USER:\n")
  80.         (append z1)
  81.         (append z2)
  82.         (append z3)
  83.         (append ("\"%s\"\n" (tackon dir "BFC")))
  84. )
  85.  
  86. (makedir (tackon dir2 "Fonts"))
  87. (makedir (tackon dir2 "Fonts/BIC"))
  88.  
  89. (copyfiles
  90.         (prompt "Kopiere Dateien nach %s" dir2)
  91.         (source "BFC:FONTS")
  92.         (dest (tackon dir2 "FONTS"))
  93.         (choices "BIC.font")
  94. )
  95.  
  96. (copyfiles
  97.         (prompt "Kopiere Dateien nach %s" dir2)
  98.         (source "BFC:FONTS/BIC")
  99.         (dest (tackon dir2 "FONTS/BIC"))
  100.         (choices "7" "9")
  101. )
  102.  
  103. (copyfiles
  104.         (prompt "Kopiere Hauptprogramm nach %s" dir2)
  105.         (source "BFC:")
  106.         (dest dir2)
  107.         (choices "BFC")
  108. )
  109.  
  110. (copyfiles
  111.         (source "BFC:DATA")
  112.         (dest dir2)
  113.         (choices "Battle Field Creator.info")
  114. )
  115.  
  116. (makedir (tackon dir2 "c"))
  117. (copyfiles
  118.         (dest (tackon dir2 "c"))
  119.         (source "C:")
  120.         (choices "IconX" "Assign")
  121. )
  122. (makedir (tackon dir2 "libs"))
  123. (copyfiles
  124.         (dest (tackon dir2 "libs"))
  125.         (source "BFC:Libs")
  126.         (choices "diskfont.library")
  127. )
  128.  
  129.  
  130. (if (= drive 0)
  131.         ((message
  132.                 "Bitte wechseln Sie nun die Original BFC-Diskette gegen eine formartierte Diskette mit dem Namen \"BFC_USER:\" aus."
  133.         )
  134.         (copyfiles
  135.                 (source "RAM:BFC")
  136.                 (dest "BFC_USER:")
  137.                 (all)
  138.         )
  139.         (delete "RAM:BFC/BFC")
  140.         (delete "RAM:BFC/Battle Field Creator.info")
  141.         (delete "RAM:BFC/Battle Field Creator")
  142.         (delete "RAM:BFC/c/IconX")
  143.         (delete "RAM:BFC/c/Assign")
  144.         (delete "RAM:BFC/libs/diskfont.library")
  145.         (delete "RAM:BFC/FONTS/BIC/7")
  146.         (delete "RAM:BFC/FONTS/BIC/9")
  147.         (delete "RAM:BFC/FONTS/Bic.font")
  148.         (delete "RAM:BFC/S/StartUp-Sequence")
  149.         )
  150. )
  151.  
  152. (if (= (BITAND LIBS 1) 1)
  153.         ((copyfiles
  154.                 (source "BI2:LIB")
  155.                 (dest (tackon dir2 "LIB0"))
  156.                 (choices "PART.LIB" "PART.TAB" "UNIT.LIB" "UNIT.TAB")
  157.         )
  158.         (copyfiles
  159.                 (source "BI2:MAP")
  160.                 (dest (tackon dir2 "Computer"))
  161.                 (pattern "#?.com")
  162.         ))
  163.  
  164. )
  165.  
  166. (if (= (BITAND Libs 2) 2)
  167.         (copyfiles
  168.                 (source "BI6:LIB")
  169.                 (dest (tackon dir2 "LIB1"))
  170.                 (choices "PART.LIB" "PART.TAB")
  171.         )
  172. )
  173.  
  174. (if (= (BITAND Libs 4) 4)
  175.         (copyfiles
  176.                 (source "DD2:LIB")
  177.                 (dest (tackon dir2 "LIB2"))
  178.                 (choices "PART.LIB" "UNIT.LIB")
  179.         )
  180. )
  181. (if (= drive 0)
  182.         ((message
  183.                 "Bitte legen Sie erneut die \"BFC_USER:\" Diskette ein."
  184.         )
  185.         (copyfiles
  186.                 (source "RAM:BFC")
  187.                 (dest "BFC_USER:")
  188.                 (all)
  189.         )
  190.         )
  191. )
  192.  
  193.  
  194.  
  195.